<?php
    require_once("./classes/sessao.php");
    session_start();

    if (isset($_SESSION['ANAWEB']) && !empty($_POST['profid']))
        $_SESSION['ANAWEB']->AlteraProfessor($_POST['profid']);

    $string = "Location: upload.php";
    if (isset($_GET['topico'])) $string = $string."?topico=".$_GET['topico'];

    header($string);
?>